package cn.cs.service;

import cn.cs.mapper.CsProportionSettingMapper;
import cn.cs.pojo.CsProportionSetting;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


@RestController
public class CsProportionSettingService {

    @Resource
    private CsProportionSettingMapper csProportionSettingMapper;

    @RequestMapping(value = "/getCsProportionSettingById", method = RequestMethod.POST)
    public CsProportionSetting getCsProportionSettingById(@RequestParam("id") String id)throws Exception{
        return csProportionSettingMapper.getCsProportionSettingById(id);
    }

    @RequestMapping(value = "/updateCsProportionSetting", method = RequestMethod.POST)
    public Integer updateCsProportionSetting(@RequestBody CsProportionSetting csProportionSetting)throws Exception{
        return csProportionSettingMapper.updateCsProportionSetting(csProportionSetting);
    }
}
